<?php
namespace app\index\c;

use JkPHP\Controller;

class Index extends Controller
{
    function index()
    {
        echo '<h1 style="display: block; text-align: center">Hello JkPHP!</h1><p style="text-align: center">我们不生产框架，我们只是组件的搬运工！</p>';

        // $res = db()->select('user','*');
        // dump($res);

        $this->assign('name', 'Ryan');
        $this->display();
    }
    function hello($vars)
    {
        echo "<h1>Hello {$vars['name']} ...</h1>";
    }
    function action($vars)
    {
        echo "<h1>Action.</h1>";
        var_dump($vars);
    }
    function group()
    {
        echo "<h1>In Group.</h1>";
    }
}